package com.atguigu.aliyunvod;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
@ComponentScan(basePackages = {"com.atguigu"})
@EnableDiscoveryClient //nacos服务注册
@EnableCircuitBreaker //用于服务自身的服务降级和熔断机制，如果不加服务本身的降级和熔断不生效。如果是openfeign在胚子文件里面配就行
public class VodApplication {

    public static void main(String[] args) {

        SpringApplication.run(VodApplication.class,args);
    }
}
